/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.kifas.service;

import com.kifas.model.xml.PersistStatus;
import com.kifas.ui.util.ServiceConstants;
import com.sun.jersey.api.client.Client;
import org.apache.log4j.Logger;

/**
 *
 * @author dhamarsu
 */
public class SecurityService {
    private static Logger log = Logger.getLogger(MasterService.class);
    private String serviceUrl  = ServiceConstants.URL_CONTROLLER;
    private Client restClient;

    public SecurityService() {
//        restClient = Client.create();
    }

    public PersistStatus setPengiriman(String user, String passw){
        PersistStatus persistStatus = new PersistStatus();
        if (user.equals("admin") && passw.equals("admin")){
            persistStatus.setStatus("success");
        }else{
            persistStatus.setStatus("failed");
        }
        return  persistStatus;
    }
}
